Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delimiting Mata code with mata: ... end vs. mata { ... }

    Dear Matalisters,

    When writing Mata code in a do-file, are there important differences between the following two ways of delimiting the Mata content?

    Method 1: mata: ... end
    Code:
    mata :
      a
      b
    end
    Method 2: mata { ... }

    Code:
    mata {
      a
      b
    }
    Method 2 can be included in loops and Stata programs, are there any downsides?

    Thanks,
    BL
Working...
X